package com.jinglin.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.cglib.core.Local;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 视频信息
 * </p>
 *
 * @author ${author}
 * @since 2025-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VideoInfo对象", description="视频信息")
public class VideoInfo extends Model<VideoInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频ID")
      @TableId(value = "video_id", type = IdType.ASSIGN_ID)
    private String videoId;

    @ApiModelProperty(value = "视频封面")
    private String videoCover;

    @ApiModelProperty(value = "视频名称")
    private String videoName;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime lastUpdateTime;

    @ApiModelProperty(value = "父级分类ID")
    private String  pCategoryId;

    @ApiModelProperty(value = "分类ID")
    private String  categoryId;

    @ApiModelProperty(value = "0:自制作  1:转载")
    private Integer postType;

    @ApiModelProperty(value = "原资源说明")
    private String originInfo;

    @ApiModelProperty(value = "标签")
    private String tags;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "互动设置")
    private String interaction;

    @ApiModelProperty(value = "持续时间（秒）")
    private Integer duration;

    @ApiModelProperty(value = "播放数量")
    private Integer playCount;

    @ApiModelProperty(value = "点赞数量")
    private Integer likeCount;

    @ApiModelProperty(value = "弹幕数量")
    private Integer danmuCount;

    @ApiModelProperty(value = "评论数量")
    private Integer commentCount;

    @ApiModelProperty(value = "投币数量")
    private Integer coinCount;

    @ApiModelProperty(value = "收藏数量")
    private Integer collectCount;

    @ApiModelProperty(value = "是否推荐0:未推荐  1:已推荐")
    private Integer recommendType;

    @ApiModelProperty(value = "最后播放时间")
    private LocalDateTime lastPlayTime;

    private String nickName;
    private String avatar;

    @ApiModelProperty(value = "删除为1 未删除为0")
    @TableLogic
    private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.videoId;
    }

}
